<template>
  <div class="mine">
    <div class="_box _top">
      <Header></Header>
    </div>
    <div class="_box account">
        <div class="_card">
            <div class="user">
                <div class="_img">
                    <mu-paper class="_circle_view" circle :z-depth="2" color="pink500">
                        <img :src="user.userhead" alt="">
                    </mu-paper>
                </div>
                <div class="name">
                    <span>{{user.name}}</span>
                </div>
                <div class="username">
                    <span>{{user.username}}</span>
                </div>
            </div>
            <div class="_items">
                <div class="_icon">
                    <i class="iconfont icon31chanpincanshu" style="font-size: 4vh;"></i>
                </div>
                <div class="_title">账户设置</div>
            </div>
        </div>
    </div>
    <div class="_box settom">
        <div class="_card">
            <div class="_items" v-for="item in settom_set" :key="item.index">
                <div class="_icon">
                    <i class="iconfont" :class="item.icon" style="font-size: 4vh;"></i>
                </div>
                <div class="_title">{{item.title}}</div>
            </div>
        </div>
    </div>
    <div class="_box letout">
        <div class="_card">
            <div class="_items">
                <div class="_icon">
                    <i class="iconfont icontishi" style="font-size: 4vh;"></i>
                </div>
                <div class="_title">关于我们</div>
            </div>
            <div class="_items">
                <div class="_icon">
                    <i class="iconfont iconexit" style="font-size: 4vh;"></i>
                </div>
                <div class="_title">退出</div>
            </div>
        </div>
    </div>
    <div class="_box _bottom">
      <Leader></Leader>
    </div>
  </div>
</template>

<script>
import Header from '../../components/header'
import Leader from '../../components/leader'
export default {
  data () {
    return {
      user: {
        userhead: '',
        username: 'username',
        name: 'user'
      },
      settom_set: [
        {icon: 'iconzuji', title: '历史'},
        {icon: 'iconshezhi', title: '设置'},
        {icon: 'iconxieyi', title: '协议管理'},
        {icon: 'icondanpin', title: '下载中心'},
        {icon: 'iconkefu', title: '在线客服'},
        {icon: 'iconfankui', title: '信息反馈'}
      ]
    }
  },
  components: {
    Header,
    Leader
  }
}
</script>

<style scoped>
.mine {
  height: 100%;
  width: 100%;
  overflow: hidden;
}
._box {
  width: 100%;
}
._top {
  position: fixed;
  top: 0;
  z-index: 100;
}
._bottom {
  position: fixed;
  bottom: 0;
  z-index: 100;
}
.account {
    width: 100%;
    height: 20%;
    position: relative;
    top: 8%;
}
.settom {
    width: 100%;
    height: 36%;
    position: relative;
    top: 9%;
}
.letout {
    width: 100%;
    height: 20%;
    position: relative;
    top: 10%;
}
/*detail */
.account ._card{
    position: relative;
    width:94%;
    height: 100%;
    margin: 0 auto;
    border-bottom: solid 0.01rem #ccc;
}
.account .user{
    position: relative;
    width: 100%;
    height: 70%;
}
.account ._img{
    position: relative;
    width: 30vw;
    height: 30vw;
    float: left;
}
.account ._circle_view{
    position: relative;
    width: 20vw;
    height: 20vw;
    top:5vw;
    left: 5vw;
}
.account .name,.account .username{
    position: relative;
    width: 40vw;
    height: 10vw;
    float: left;
    top:5vw;
}
.account .user span,.account .username span{
    text-align: left;
    width: 100%;
    height: 100%;
    display: block;
    line-height: 12vw;
}
.account .name span{
    font-size: 0.5rem;
}
.account ._items{
    position: relative;
    width: 90%;
    height: 30%;
    margin: 0 auto;
}
._items ._icon{
    position: relative;
    width: 6vh;
    height: 6vh;
    color: #ad1457;
    line-height: 6vh;
    float: left;
}
._items ._title{
    left: 5vw;
    height: 100%;
    width: 40%;
    position: relative;
    float: left;
    font-size: 0.4rem;
    line-height: 6vh;
    text-align: left;
}
.settom ._card{
    width: 94%;
    height: 100%;
    position: relative;
    margin: 0 auto;
    border-bottom: solid 0.01rem #ccc;
}
.settom ._items{
    position: relative;
    width: 90%;
    height: 6vh;
    margin: 0 auto;
}

.letout ._card{
    width: 94%;
    height: 100%;
    position: relative;
    margin: 0 auto;
}

.letout ._items{
    position: relative;
    width: 90%;
    height: 6vh;
    margin: 0 auto;
}

</style>
